#include "PointLightComponent.h"

#include "Render/Scene/RenderPointLightData.h"
#include "Render/Scene/RenderScene.h"
#include "Render/RenderContext.h"
#include "Scene/SceneNode.h"

void RPointLightComponent::Paint(CRenderScene* InRenderData)
{
    Super::Paint(InRenderData);

    SRenderPointLightData& RenderData=InRenderData->PointLights.Emplace();
    RenderData.Position=GetNode()->GetWorldPosition();
    RenderData.Color=Color;
    RenderData.Intensity=Intensity;
    RenderData.Radius=Radius;
    RenderData.ShadowBias=ShadowBias;

}

